<?php
	/* configuration center detail parameter
	 * 
	 * by Breezeer @2020.10.31
	 *
	 *
	 */

	 /* 配置中心以键值对返回数据 [配置中心默认形式不能删除]
	  *
	  *
	  *
	  *
	  *
	  */
	 $g_configuration_center_detail_parameter									= new stdClass(); 

	 /* 配置形式 1	=> 键值对
	  *
	  */
	 $g_configuration_center_detail_parameter->version							=	'2.0';

	 /* 配置形式 2	=> 关联数组
	  *
	  */
	 $g_configuration_center_detail_parameter->array_key_value					=	[
																						'test_configuration_a'	=> 1000,
																						'test_configuration_c'	=> 1002,
																					];
	 /* 配置形式 3	=> 类的 const
	  *
	  */
	 $g_configuration_center_detail_parameter->object_ex						=	function()
	 {
		 return (	new class()
					{
			 				# public const
							#
							public const AC_A	= '1000';
							public const AC_B	= '1001';
							public const AC_C	= '1001';
					}
				);
	 };


	 /* mysql connection string configuration
	  *
	  */
	 $g_configuration_center_detail_parameter->mysql_connection_string_configuration			= function()
	 {
		 return (	new class	()
					{
										public const host		= 'db.wl.x.x'			;
										public const port		= '3306'				;
										#
										#

										# test 
										#
										# public const host		= '47.108.106.112'		;
										# public const port		= '33060'				;

										public const database	= 'dms_lar_be_dev'		;
										public const username	= 'dms_lar_be_dev'		;
										public const password	= 'S5t6YyEsjJNsnjia'	;
					}
				);
	 };

	 /* redis connection string configuration
	  *
	  */
	 $g_configuration_center_detail_parameter->redis_connection_string_configuration			= function()
	 {
		 return (	new class	()
					{
										public const host		= 'redis.wl.x.x'		;
										public const port		= '6379'				;
										public const username	= 'dms'					;
										public const password	= 'uO=w7WmH'			;
					}
				);
	 };




    $g_configuration_center_detail_parameter->dingdingProcessCode				=	function()
    {
        return (new class()
        {


            // 合同法务审批
            const CONTRACT_APPROVAL_FW_CODE = 'PROC-63D44180-9985-4C6B-96FE-A387A690DD9B';
            // 合同审批code
            const CONTRACT_APPROVAL_CODE = 'PROC-3488FF02-B17F-468B-A1EC-558AB588C359';
            // 合同用印审批code
            const CONTRACT_SEAL_APPROVAL_CODE = 'PROC-9CFB28AA-68A6-424F-BF2B-F49082D9AFDF';

            // 客户 -> 信用客户审批
            const CLIENT_APPROVAL_CODE = "PROC-D4D71A04-7176-4EAE-A0D9-7A7B2EE6C86C"; # 省物流
            # 信用项目丁丁审批表单 => by breezeer @ 2022.10.25
            const CREDIT_PROJECT_DING_DING_APPROVAL_CODE				= 'PROC-4648A3CA-B7C4-4FB8-B35D-5BE19903B2C5';	# 信用项目审查
            const CREDIT_PROJECT_ADJUST_QUOTA_DING_DING_APPROVAL_CODE	= 'PROC-1B69A057-4D56-4163-ACE6-50BE349797B2';	# 信用项目审批已批准赊销项目额度的调增调减审查
        }
        );
    };

    $g_configuration_center_detail_parameter->node_config						=	function() {
        return ( new class()
        {
            // 钉钉应用ID 这里用的是品帛的钉钉
            const NODE_WORD_TO_PDF = "/data/doxgen/";
        }
        );
    };

    $g_configuration_center_detail_parameter->dingTalkConfig						=	function()
    {
        return (new class()
        {
            // 钉钉应用ID 这里用的是物流的钉钉
            const DING_TALK_AGENT_ID = 1989161552;
            // 钉钉应用 APP_KEY
            const DING_TALK_APP_KEY = "dinglym5jo4xsdzovlr7";
            // 钉钉应用 AppSecret
            const DING_TALK_APP_SECRET = "gP0k98TnU2g-XuW9NMzE3aXIwkUJYqpaTSin13c3FcJXU9khczAFt3V1XL3Yks2y";
            // 钉钉登录回调配置
            // 钉钉回调URL
            const DING_CALL_BACK_TALK_URL = 'http://jtht.66tx.cn/api/dms-lar-be/public/index.php/api/triggerDingTalkRollBack';
            // 钉钉回调 AppID
            const DING_TALK_LOGIN_APP_ID = 'dingoajgc0acakt1aliifl';
            // 钉钉回调 AppSecret
            const DING_TALK_LOGIN_APP_SECRET = 'Jpcb9VMD-zZ4FVRBhYs1L5EUVO9ZrB0-0SF6_PJEB3f17HxSXtBLgjbRNgYjAGfc';
            // 钉钉上传文件文件夹配置
            const SAVE_FILE_NAME = '测试文件上传';
            // 钉钉CorpId
            const DING_TALK_CORP_ID = 'dingd8be9d90ee02b21535c2f4657eb6378f';
            // 钉钉事件订阅Token
            const DINT_TALK_EVENT_TOKEN = 'idQ9XW4T1mEwuflODpD1ZWlBdjvyutYCyQPSWyNUNkfhS';
            // 钉钉事件订阅 AES
            const DINT_TALK_EVENT_ENCODING_AES_KEY = 'u1Qty5hsOxSFW1ZOEAZLqGzG8fanCJTGT9jQjM2rP7t';
        }
        );
    };
